package com.winit.common.util;

import org.springframework.util.StringUtils;

public class Constants {

    public static final String ROOT_PATH = ConfigUtil.getValue("root_path");
    public static final String DIR_NAME = ConfigUtil.getValue("dir_name");

    public static final String BASE_DIR = ROOT_PATH + "/" + DIR_NAME;

    public final static String SHELL_PATH = StringUtils.isEmpty(ConfigUtil.getValue("shellPath")) ? Thread.currentThread().getContextClassLoader().getResource("").getPath() : ConfigUtil.getValue("shellPath");

    public static final String AUTHORIZE_FILE_PATH = BASE_DIR + "/authorize/authorize.json";

    public static final String TOM_CONFIG_DIR = ConfigUtil.getValue("tom_config_dir");
    public static final String TOM_CONFIG_FILE = ConfigUtil.getValue("tom_config_file");

}
